package com.service1.db.mybatis.db1.mapper

import com.base.model.service1.db.Model_Service1_MyBatisDB
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Select
import org.apache.ibatis.annotations.Update
import org.springframework.stereotype.Repository

@Mapper
@Repository
interface MyBatisDB1Mapper {
    @Select(
        """
        select
        t.id id
        from t_test t
        where t.id=#{id}
    """
    )
    fun find(id: String): ArrayList<Model_Service1_MyBatisDB>

    @Update(
        """
        update
        t_test t
        set
        name=#{uuid}
    """
    )
    fun update(uuid: String): Int
}
